/*
 * custom CSS
 */

/* 倒计时外部容器 */
.countdown-wrapper {
    text-align: center;
    font-family: Arial, sans-serif;
    padding: 20px;
}

.countdown-title h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold;
}

.countdown-title h4 {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
}

/* 链接样式 */
.countdown-title h1 a {
    text-decoration: none;
    color: #3498db;
}

.countdown-title h1 a:hover {
    color: #2c3e50;
}

/* 倒计时部分 */
#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 倒计时每个项目的样式 */
.countdown-item {
    background: #f7f7f7;
    border: 2px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    width: 100px;
}

.countdown-item span {
    display: block;
    font-size: 48px;
    font-weight: bold;
    color: #333;
}

.countdown-item p {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 0em;
    color: #777;
}

/* 自定义不同时间单位的颜色 */
#days {
    color: #e74c3c; /* 天 - 红色 */
}

#hours {
    color: #3498db; /* 时 - 蓝色 */
}

#minutes {
    color: #2ecc71; /* 分 - 绿色 */
}

#seconds {
    color: #f39c12; /* 秒 - 黄色 */
}


/* ---- 响应式设计：调整小屏幕下的样式 ---- */
@media (max-width: 800px) {
    /* 标题在手机上缩小字体 */
    .countdown-title h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .countdown-title h4 {
        font-size: 18px;
        color: #666;
        margin-bottom: 20px;
    }

    /* 倒计时每个项目在手机上缩小 */
    .countdown-item {
        padding: 15px;
        width: 80px; /* 减小块的宽度 */
    }

    .countdown-item span {
        font-size: 36px; /* 缩小时间数字字体 */
    }

    .countdown-item p {
        font-size: 20px; /* 缩小时间单位的字体 */
        margin-top: 15px;
        margin-bottom: 0em;
    }

    /* 当屏幕宽度非常小的时候，元素将垂直排列 */
    #countdown {
        gap: 10px;
        flex-direction: row; /* 默认横向排列 */
    }
}

.nxr-daily {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nxr-daily a {
    color: #0073e6;
    text-decoration: none!important;
    font-weight: bold;
}

/* 并排图片容器 */
.sxs-image { margin:20px 0; text-align:center; }

/* 并排 */
.sxs-image .sxs-row {
    display:flex;
    justify-content:center;
    gap:10px;
}

/* 每列宽度由 CSS 变量控制（默认 49%）*/
.sxs-image .sxs-lightbox { flex:0 0 var(--sxs-width,49%); display:block; }

/* 图片本身 */
.sxs-image img {
    width:100%; height:auto;
    border:1px solid #eee;
    transition:transform .3s;
}
.sxs-image img:hover { transform:scale(1.02); }

/* 标题 */
.sxs-image .sxs-caption {
    margin-top:10px;
    font-style:italic;
    color:#666;
    font-size:.9em;
}

/* 移动端保持并排 + 横滚 */
@media (max-width:480px){
    .sxs-image .sxs-row { flex-wrap:nowrap; overflow-x:auto; }
    .sxs-image .sxs-lightbox { flex:0 0 45%; }
}

/* --------- Lightbox --------- */
.sxs-lightbox-bg{
    position:fixed; inset:0; display:flex;
    align-items:center; justify-content:center;
    background:rgba(0,0,0,.9); z-index:9999; cursor:zoom-out;
}
.sxs-lightbox-content{ position:relative; max-width:90%; max-height:90%; }
.sxs-lightbox-content img{ max-width:100%; max-height:80vh; border:3px solid #fff; }
.sxs-close{
    position:absolute; top:-40px; right:-10px;
    background:none; border:none; font-size:40px; color:#fff; cursor:pointer;
}

// PDF下载页面
.download-container {
    text-align: center;
    font-family: 'Arial', sans-serif;
    max-width: 600px;
    margin: 30px auto;
    padding: 60px;
    background: #eaeaea;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.download-container label {
    display: block;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}
.download-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.download-container input {
    padding: 15px !important;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 360px;
    transition: border 0.3s;
}
.download-container input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 5px rgba(74,144,226,0.3);
}
.download-container button {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}
.download-container button:hover {
    background-color: #357ab8;
}
